Does anybody know if it's possible to associate a callback with the checkboxes in a listView? |
Re: Callback for listView checkbox Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: Callback for listView checkbox
Hi
string s[] = {"A", "B"}
void checkBoxReact(DBE lv, int i)
{
string s = get(lv, i)
bool b = getCheck(lv, i)
if ( b )
{
infoBox(s " was selected")
}
else
{
infoBox(s " was deselected")
}
}
DB db = create("Test of check box reaction")
DBE lv = listView(db, listViewOptionCheckboxes, 70, 4, s)
set(lv, checkBoxReact)
realize(db)
insertColumn(lv, 0, "Option", 50, iconNone)
show(db)
|
Re: Callback for listView checkbox Many thanks, Anders! Karl |